﻿using System;
using System.Windows.Forms;

using Storm.TextEditor.Parser.Objects;

namespace Storm.TextEditor.Editor
{
	/// <summary>
	/// Holds information on WordMouse events.
	/// </summary>
	public class WordMouseEventArgs
		: EventArgs
	{
		#region Fields

		private Word word;
		private Pattern pattern;
		private MouseButtons button;
		private Cursor cursor;

		#endregion

		#region Properties

		/// <summary>
		/// Gets or sets the word.
		/// </summary>
		/// <value>The word.</value>
		public Word Word
		{
			get { return word; }
			set { word = value; }
		}

		/// <summary>
		/// Gets or sets the pattern.
		/// </summary>
		/// <value>The pattern.</value>
		public Pattern Pattern
		{
			get { return pattern; }
			set { pattern = value; }
		}

		/// <summary>
		/// Gets or sets the button.
		/// </summary>
		/// <value>The button.</value>
		public MouseButtons Button
		{
			get { return button; }
			set { button = value; }
		}

		/// <summary>
		/// Gets or sets the cursor.
		/// </summary>
		/// <value>The cursor.</value>
		public Cursor Cursor
		{
			get { return cursor; }
			set { cursor = value; }
		}

		#endregion

		/// <summary>
		/// Initializes a new instance of the <see cref="WordMouseEventArgs"/> class.
		/// </summary>
		public WordMouseEventArgs()
		{
		}
	}
}
